package com.tmeone.erpone.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.SMenu;
import com.tmeone.erpone.entity.SRole;
import com.tmeone.erpone.entity.SUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import javax.management.relation.Role;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tmeone
 * @since 2021-04-16
 */
public interface SUserMapper extends BaseMapper<SUser> {
    List<SRole> selectRolesByUsername(String username);
    IPage<SUser> pageUser(IPage<SUser> page);
    //通过ID查询用户
    SUser selectById(String id);
    // List<Functions> selectFunctionsByUsername(String username);

    List<SMenu> selectPermissionsByUsername(String s);
}
